package com.hq.hotl.dao;

import com.hq.hotl.pojo.Customer;
import com.hq.hotl.pojo.House;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CustomerDao {

//    预定之后更新房间信息
    int updateOne(String name);

    House orderHouse(Customer customer);
    //登录旅客
    Customer login(@Param("username") String username, @Param("password") String password);
    //customer的username查询该username对应信息
    Customer queryOne(String username);
    

    List<House> orderHouse(String  type);
    Customer login(String username);
    //注册customer
    int zhuce(Customer customer);
    //查询全部住客信息
    List<Customer> queryAll();
    //分页全部住客信息里面的删除操作
    int deleteOne(int id);


//    插入客户信息
    int insertOne(@Param("customer_id") int customer_id,@Param("order_customer_id") int order_customer_id,@Param("price") double price);


    //修改一条customer信息
    int updateOneCustomer(Customer customer);

    //通过id来查询一条用户信息
    Customer queryOneCusomer(int id);

    //修改资料
    int updatePassword(Customer customer);



}
